package com.shangs.platform.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author shangs
 * @since 2017-10-26
 */
@TableName("app_version")
public class AppVersion extends Model<AppVersion> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 更新说明
     */
	private String content;
	@TableField("create_time")
	private Date createTime;
    /**
     * 外部下载地址
     */
	@TableField("link_url")
	private String linkUrl;
    /**
     * 自然版本号
     */
	@TableField("nature_no")
	private Integer natureNo;
    /**
     * 系统类型android or ios
     */
	private String os;
    /**
     * 内部下载地址
     */
	private String url;
    /**
     * 版本号
     */
	@TableField("version_no")
	private String versionNo;
    /**
     * 1-有效   0-无效
     */
	private Integer status;
    /**
     * 是否强制升级 0:否 1：是
     */
	@TableField("is_force")
	private Integer isForce;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	public Integer getNatureNo() {
		return natureNo;
	}

	public void setNatureNo(Integer natureNo) {
		this.natureNo = natureNo;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getVersionNo() {
		return versionNo;
	}

	public void setVersionNo(String versionNo) {
		this.versionNo = versionNo;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIsForce() {
		return isForce;
	}

	public void setIsForce(Integer isForce) {
		this.isForce = isForce;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "AppVersion{" +
			"id=" + id +
			", content=" + content +
			", createTime=" + createTime +
			", linkUrl=" + linkUrl +
			", natureNo=" + natureNo +
			", os=" + os +
			", url=" + url +
			", versionNo=" + versionNo +
			", status=" + status +
			", isForce=" + isForce +
			"}";
	}
}
